/**
 * 
 */
package co.cesarcompany.cesarmvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.cesarcompany.cesarmvc.domain.Libro;
import co.cesarcompany.cesarmvc.persistence.DAO;
import co.cesarcompany.cesarmvc.service.LibroService;

/**
 * @author cesar
 *
 */
@Service
public class LibroServiceImpl implements LibroService {
    
    @Autowired
    private DAO dao;

    @Override
    public List<Libro> findAll() {
        // TODO Auto-generated method stub
        return dao.findAll();
    }

    @Override
    public void insert(Libro libro) {
        // TODO Auto-generated method stub
        dao.insertLibro(libro);
    }

}
